@@ -9,7 +9,7 @@ django-admin==1.2.0 |
||
| 9 | 9 |
django-curtail-uuid==1.0.4 |
| 10 | 10 |
django-detect==1.0.5 |
| 11 | 11 |
django-file-md5==1.0.2 |
| 12 |
-django-file-upload==1.0.0 |
|
| 12 |
+django-file-upload==1.0.1 |
|
| 13 | 13 |
django-ip==1.0.2 |
| 14 | 14 |
django-json-render==1.0.0 |
| 15 | 15 |
django-json-response==1.1.5 |
@@ -1,6 +1,7 @@ |
||
| 1 | 1 |
# -*- coding: utf-8 -*- |
| 2 | 2 |
|
| 3 |
-from filemd5 import calculate_md5 |
|
| 3 |
+from django_file_md5 import calculate_md5 |
|
| 4 |
+ |
|
| 4 | 5 |
from utils.redis.connect import r |
| 5 | 6 |
|
| 6 | 7 |
|
@@ -6,8 +6,8 @@ import shortuuid |
||
| 6 | 6 |
from django.conf import settings |
| 7 | 7 |
from django.core.files.storage import default_storage |
| 8 | 8 |
from django.db import transaction |
| 9 |
+from django_file_md5 import calculate_md5 |
|
| 9 | 10 |
|
| 10 |
-from filemd5 import calculate_md5 |
|
| 11 | 11 |
from photo.models import PhotoUUIDInfo |
| 12 | 12 |
from utils.qiniucdn import upload_file_path |
| 13 | 13 |
from utils.thumbnail_utils import make_thumbnail |
@@ -6,8 +6,8 @@ import shortuuid |
||
| 6 | 6 |
from django.conf import settings |
| 7 | 7 |
from django.core.files.storage import default_storage |
| 8 | 8 |
from django.db import transaction |
| 9 |
+from django_file_md5 import calculate_md5 |
|
| 9 | 10 |
|
| 10 |
-from filemd5 import calculate_md5 |
|
| 11 | 11 |
from photo.models import PhotoUUIDInfo |
| 12 | 12 |
from utils.thumbnail_utils import make_thumbnail |
| 13 | 13 |
from utils.watermark_utils import watermark_wrap |